package com.zp.system.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zp.common.core.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * 机构数据字典对象 sys_org_dict
 *
 * @author zhang peng
 * @ date 2024-03-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_org_dict")
public class SysOrgDict extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "org_dict_id")
    private String orgDictId;

    /**
     * 标签
     */
    private String label;

    /**
     * 类型
     */
    private String type;

    /**
     * 值
     */
    private String value;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 门诊住院标识
     */
    private String outpOrInp;

    /**
     * 标志
     */
    @TableLogic
    private String delFlag;

    public void initEntity() {
        this.delFlag = "0";
    }

    /**
     * 备注信息
     */
    private String remarks;


    /**
     * 熔断后异常信息
     */
    @TableField(exist = false)
    private String exceptionCode;

    private String orgId;

    /**
     * 诊疗项目id
     */
    private String clinicItemId;
}
